<template>
	<view class="appointment">
		<view class="panel">
			<u-radio-group v-model="radiovalue" placement="row">
				<u-radio v-for="(item, index) in config.radiolist" :key="index" :label="item.name" :name="item.name"
					@change="()=>radioChange(item)">
				</u-radio>
			</u-radio-group>
		</view>
		<tuinaMassage></tuinaMassage>
		<!-- <nursingService></nursingService> -->
	</view>
</template>

<script>
	import tuinaMassage from './components/tuinaMassage.vue';
	import nursingService from './components/nursingService.vue';
	export default {
		components: {
			tuinaMassage,
			nursingService
		},
		data() {
			return {
				radiovalue: '推拿按摩',
				config: {
					radiolist: [{
							name: '推拿按摩',
							disabled: false
						},
						{
							name: '健康讲解',
							disabled: false
						},
						{
							name: '康复训练',
							disabled: false
						}, {
							name: '护理服务',
							disabled: false
						}, {
							name: '其他服务',
							disabled: false
						}
					]
				}
			};
		},
		methods: {
			radioChange(n) {
				console.log('radioChange', n);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.appointment {
		height: 100%;
		background-color: $page-color-base;
		padding-top: 24rpx;

		::v-deep .u-radio-group {
			flex-wrap: wrap;

			.u-radio {
				width: 33.33%;
				margin: 10rpx 0;
			}
		}

		// ::v-deep .u-input__content__field-wrapper {
		// 	width: max-content;

		// 	.input-placeholder {
		// 		text-align: right !important;
		// 		background-color: #FFF !important;
		// 		font-size: 28rpx;
		// 		font-weight: 400;
		// 		color: rgba(54, 68, 79, 1);
		// 	}

		// 	.u-input__content__field-wrapper__field {
		// 		text-align: right !important;
		// 		background-color: #FFF !important;
		// 	}
		// }

		.text {
			font-size: 24rpx;
			font-weight: 400;
			color: rgba(152, 160, 166, 1);
			padding: 10rpx 20rpx;
		}

		.panel {
			padding: 24rpx;
			background-color: #FFF;
			border-radius: 16rpx;
			overflow: hidden;
			margin: 0 24rpx;
		}
	}
</style>